<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

</body>
<script>
    const performance = window.performance;
    console.log(performance.navigation);
    console.log(performance.timing);


    window.onhashchange = ()=>{
        console.log('路由改变了');
    }
</script>
</html>